#pragma once
#include <iostream>
using namespace std;
class Complex
{
public:
	Complex();
	Complex(double real, double image);
	virtual ~Complex();
	Complex& operator=(Complex& c);
	Complex& operator+=(Complex& c);
	Complex operator+(Complex& c);
	bool operator==(Complex& c);
	friend ostream& operator<<(ostream& os,Complex& c);
	friend istream& operator>>(istream& is, Complex& c);
	double getImage();
	void setImage(double image);
	double getReal();
	void setReal(double real);
private:
	double _real;
	double _image;
};

